﻿using FullAppPrismNetDesktop.Modules.DevicesModule.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace FullAppPrismNetDesktop.Modules.ModuleName
{
    public class DevicesModule : IModule
    {

        private readonly IRegionManager _regionManager;

        public DevicesModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }


        public void OnInitialized(IContainerProvider containerProvider)
        {
            _regionManager.RequestNavigate("ContentRegionSecond", "ViewA");
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
          //  containerRegistry.RegisterForNavigation<ViewA>();
            containerRegistry.RegisterForNavigation<ViewA,ViewAViewModel>();
        }
    }
}